﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FWMS.Service
{
    class ChanPinGuanLiService
    {
        //产品全部查询
        public Bean.ChanPinGuanLiBean chanpinguanliServiceSelect()
        {
            DAO.ChanPinGuanLiDao chanpinguanlidao = new FWMS.DAO.ChanPinGuanLiDao();
            return chanpinguanlidao.chanpinguanliDaoSelect();
        }
        //产品条件查询
        public Bean.ChanPinGuanLiBean chanpinguanliServiceSelectContation(Bean.ChanPinGuanLiBean bean)
        {
            DAO.ChanPinGuanLiDao chanpinguanlidao = new DAO.ChanPinGuanLiDao();
            return chanpinguanlidao.chanpinguanliDaoSelectCondition(bean);
        }
        //产品添加
        public bool chanpinguanliServiceAdd(Bean.ChanPinGuanLiBean bean)
        {
            DAO.ChanPinGuanLiDao chanpingguanlidao = new DAO.ChanPinGuanLiDao();
            return chanpingguanlidao.chanpinguanliDaoAdd(bean);
        }

        //产品修改
        public bool chanpinguanliServiceModify(Bean.ChanPinGuanLiBean bean)
        {
            DAO.ChanPinGuanLiDao chanpinguanlidao = new DAO.ChanPinGuanLiDao();
            return chanpinguanlidao.chanpinguanliDaoModify(bean);
        }

    }
}
